import request from '@/utils/request'

// 查询客户账户交易列表
export function listTradelogs(query) {
  return request({
    url: '/bmsystem/tradelogs/list',
    method: 'get',
    params: query
  })
}

// 查询客户账户交易详细
export function getTradelogs(id) {
  return request({
    url: '/bmsystem/tradelogs/' + id,
    method: 'get'
  })
}

// 新增客户账户交易
export function addTradelogs(data) {
  return request({
    url: '/bmsystem/tradelogs',
    method: 'post',
    data: data
  })
}

// 修改客户账户交易
export function updateTradelogs(data) {
  return request({
    url: '/bmsystem/tradelogs',
    method: 'put',
    data: data
  })
}

// 删除客户账户交易
export function delTradelogs(id) {
  return request({
    url: '/bmsystem/tradelogs/' + id,
    method: 'delete'
  })
}
